package cn.lavender.unit;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;

/**
 * <p>
 *
 * @RunWith 和 @Suite 都被用作运行测试套件
 * </p>
 * @author: zhu.chen
 * @date: 2021/3/29
 * @version: v1.0.0
 */
@RunWith(Suite.class)
@Suite.SuiteClasses({JunitTestSuite.TestJunit1.class, JunitTestSuite.TestJunit2.class})
public class JunitTestSuite {

    public static class TestJunit1 {

        @Test
        public void testPrintMessage() {
            System.out.println("Inside testPrintMessage()");
        }

    }

    public static class TestJunit2 {

        @Test
        public void testSalutationMessage() {
            System.out.println("Inside testSalutationMessage()");
        }
    }

}
